From 61341026d9923061982a78f544bb121ea28969c4 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 13 May 2008 09:48:40 +0100 Subject: [PATCH] XM/XenAPI: Add blktap support when creating domains by xm through Xen API. Signed-off-by: Yosuke Iwamatsu --- tools/python/xen/xm/xenapi_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index 11ccaed665..7c45564461 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -509,7 +509,7 @@ class sxp2xml: if len(child) > 0 and child[0] == "device"] vbds_sxp = map(lambda x: x[1], [device for device in devices - if device[1][0] == "vbd"]) + if device[1][0] in ("vbd", "tap")]) vifs_sxp = map(lambda x: x[1], [device for device in devices if device[1][0] == "vif"]) -- 2.30.2